import React from "react";
import s from "@/assets/images/4.jpg"

//创建组件
class Home extends React.Component{
render(){
  const p = <p>周四下午了</p>
  const list = ['a','b','c']
  const listDom = list.map((item,index) => <li key={index}>{item}</li>)
  console.log(listDom)

  return(
    <div className="home">
    <h3>home</h3>
    {p}
    <img src={s}></img>

    {flag ? <p>'true'</p>:<p>'false'</p>}
    {list}
    <ul>
      {listDom}
    </ul>

    </div>

  )
}
}
export default Home